home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16991 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: birdland.rhein-neckar.de!usenet
  2. From: ulrich.thoenes@rhein-neckar.de (Ulrich Thoenes)
  3. Newsgroups: comp.lang.c++
  4. Subject: Static vs. dynamic linking with G++ under Linux 1.2.13
  5. Date: Fri, 12 Apr 1996 20:02:02 GMT
  6. Organization: Lullaby of Birdland
  7. Message-ID: <316eb0a8.4924575@birdland.rhein-neckar.de>
  8. NNTP-Posting-Host: lina.rhein-neckar.de
  9. X-Newsreader: Forte Agent .99d/16.182
  10.  
  11. Hello everybody.
  12.  
  13. I am a real beginner in C++ programming. I am using G++ Ver. 2.6.3
  14. from the Slackware 2.3. installation disks (D1 - D10) including all
  15. the other necessary stuff in there.
  16.  
  17. During my first trial of programming I just did some some simple I/O
  18. from one file to another.
  19.  
  20. using g++ -o program program.c the result was a 280kByte executable.
  21. Which is definetly to big for such a simple thing. I believe this is
  22. due the static linking prooven by the ldd program.
  23.  
  24. My question is:
  25. How can I get to a dynamic linking so that I result in a significantly
  26. small executable. Do I need some special libraries or is there any
  27. special option when starting g++.
  28.  
  29. Thanks, Ulli Thoenes
  30.  
  31. e-mail:  ulrich.thoenes@rhein-neckar.de
  32.